package com.buba.personnel.service.impl;

import com.buba.personnel.dao.departmentDao;
import com.buba.personnel.dao.impl.departmentDaoImpl;
import com.buba.personnel.pojo.department;
import com.buba.personnel.service.departmentService;

import java.util.List;
import java.util.Map;

public class departmentServiceImpl implements departmentService {
    departmentDao departmentDao = new departmentDaoImpl();
    @Override
    public List<department> selDep(Map<String, String> param) {
        return departmentDao.selDep(param);
    }

    @Override
    public void insert(Map<String, String> param) {
        departmentDao.insert(param);
    }

    @Override
    public int upddepartment(Map<String, String> param) {
        return departmentDao.updDepartment(param);
    }

    @Override
    public int delDep(String departId) {
        return departmentDao.delDep(departId);
    }

    @Override
    public long selCount(Map<String, String> param) {
        return departmentDao.selCount(param);
    }
}
